package com.heima.model.article.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@ApiModel(description = "文章信息数据传输对象，包含文章ID和作者ID。")
@NotEmpty(message = "请求对象不能为空")
@Data
public class ArticleInfoDto implements Serializable {

    @ApiModelProperty(value = "文章ID", example = "12345", required = false)
    @NotEmpty(message = "文章ID不能为空")
    private long articleId;

    @ApiModelProperty(value = "作者ID", example = "6789", required = false)
    @NotEmpty(message = "作者ID不能为空")
    private int authorId;

}